$OpenBSD: patch-Makefile_in,v 1.5 2017/03/27 23:46:55 danj Exp $
--- Makefile.in.orig	Wed Jan 18 21:42:06 2017
+++ Makefile.in	Thu Jan 26 18:11:47 2017
@@ -10,7 +10,7 @@ LIBDIR=@libdir@
 INCDIR=@prefix@/include
 @MK_PKGCONFIG@PKGDIR=$(LIBDIR)/pkgconfig
 
-PGMS=markdown
+PGMS=discount
 SAMPLE_PGMS=mkd2html makepage
 @THEME@SAMPLE_PGMS+= theme
 MKDLIB=libmarkdown
@@ -56,7 +56,8 @@ install.man:
 	@INSTALL_DIR@ $(DESTDIR)$(MANDIR)/man7
 	@INSTALL_DATA@ markdown.7 mkd-extensions.7 $(DESTDIR)$(MANDIR)/man7
 	@INSTALL_DIR@ $(DESTDIR)$(MANDIR)/man1
-	@INSTALL_DATA@ markdown.1 $(DESTDIR)$(MANDIR)/man1
+	@mv markdown.1 discount.1
+	@INSTALL_DATA@ discount.1 $(DESTDIR)$(MANDIR)/man1
 
 install.everything: install install.man
 
@@ -91,8 +92,8 @@ blocktags: mktags
 mkd2html:  mkd2html.o $(MKDLIB) mkdio.h
 	$(CC) $(CFLAGS) $(LFLAGS) -o mkd2html mkd2html.o -lmarkdown @LIBS@
 
-markdown: main.o pgm_options.o $(MKDLIB)
-	$(CC) $(CFLAGS) $(LFLAGS) -o markdown main.o pgm_options.o -lmarkdown @LIBS@
+discount: main.o pgm_options.o $(MKDLIB)
+	$(CC) $(CFLAGS) $(LFLAGS) -o discount main.o pgm_options.o -lmarkdown @LIBS@
 	
 makepage:  makepage.c pgm_options.o $(MKDLIB) mkdio.h
 	$(CC) $(CFLAGS) $(LFLAGS) -o makepage makepage.c pgm_options.o -lmarkdown @LIBS@
